// Please Compile with  gcc lab4a2.c -std=c99
#include <stdio.h>     
#include <stdlib.h>   
void generateInt(int i);
int main ()
{
  int i;
  printf ("How many integers do you want? ");
  scanf ("%d", &i);
  generateInt(i);
  return 0;
}

void generateInt(int a)
{
  printf ("Random integers:\n");
int j;
  for (j=0; j<a; j++)
  {
    printf ("rand[%d]= %u\n",
      j, rand ());
  }
 }
